package com.zzzyh.dao.impl;

import com.zzzyh.dao.UserDao;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;


//<bean id="userDao" class="com.zzzyh.dao.impl.UserDaoImpl"></bean>
@Data
//@Component("userDao")
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    @Value("${name}")
    public String name;
    public UserDaoImpl() {
        System.out.println("UserDao被创建了……");
    }
    @Override
    public void save() {
        System.out.println("save running..."+name);
    }
}
